package com.kunya.product.dao.product;

import com.kunya.product.po.ProductImage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductImageMapper {
    int deleteByPrimaryKey(@Param("picImgId") Long picImgId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record") ProductImage record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record") ProductImage record,@Param("table_prefix") String table_prefix);

    ProductImage selectByPrimaryKey(@Param("picImgId") Long picImgId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record") ProductImage record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record") ProductImage record,@Param("table_prefix") String table_prefix);

    List<ProductImage> selectProductImagesByProductId(@Param("productId") Long productId,@Param("table_prefix") String table_prefix);

    int deleteProductImageByProductId(@Param("productId") Long productId,@Param("table_prefix")String table_prefix);
}